<?php

namespace Tests;

use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
    use CreatesApplication;

    public function getAuthHeader()
    {
        $response = $this->post('wx/auth/login',['username'=>'name','password'=>'123456','mobile'=>'13122221111','code'=>$code]);
        $token = $response->getOriginalContent()['data']['token']??'';
        return ['Authorization'=>"Bearer {$token}"];
    }
}
